package com.pavco.caribbeanvisit.client.event;

import com.google.gwt.event.shared.GwtEvent;
import com.pavco.caribbeanvisit.client.eventhandlers.CentreMapEventHandler;

public class CentreMapEvent extends GwtEvent<CentreMapEventHandler>{
  
  public static final GwtEvent.Type<CentreMapEventHandler> TYPE =
      new GwtEvent.Type<CentreMapEventHandler>();

  private float latitude;
  private float longitude;
  
  @Override
  protected void dispatch(CentreMapEventHandler handler) {
    handler.onMapCentred(this);
  }

  @Override
  public GwtEvent.Type<CentreMapEventHandler> getAssociatedType() {
    return TYPE;
  }

  public float getLatitude() {
    return latitude;
  }

  public void setLatitude(float latitude) {
    this.latitude = latitude;
  }

  public float getLongitude() {
    return longitude;
  }

  public void setLongitude(float longitude) {
    this.longitude = longitude;
  }
}
